import { useResponseSuccess } from '~/utils/response';

export default eventHandler((event) => {
  const windowId = getRouterParam(event, 'id');

  // 模拟叫号
  const result = {
    windowId,
    nextTicket: {
      ticketNumber: 'A003',
      customerName: '王五',
      position: 1,
    },
    message: '请A003号客户到窗口办理',
    updateTime: new Date().toISOString(),
  };

  return useResponseSuccess(result);
});
